package homework1;

public class TransSort {
	public static void main(String[] args) {
		int a[]=new int[]{1,2,3,4,5,6};
		int temp;
		System.out.println("sorted before:");
		for(int x:a)
			System.out.printf("%4d",x);
		for(int i=0;i<=(a.length-1)/2;i++){
			temp=a[i];
			a[i]=a[a.length-1-i];
			a[a.length-i-1]=temp;
		}		
		System.out.println();
		System.out.println("sorted after:");
		for(int x:a)
			System.out.printf("%4d",x);
	}

}
